package com.ershi.spring.aop.proxy.interceptor;

/**
 * @author 二十
 * @since 2021/11/1 12:08 上午
 */
public interface MyInterceptor {

	Object invoke(MyInvocation myInvocation);
}
class One implements MyInterceptor{

	@Override
	public Object invoke(MyInvocation myInvocation) {

		Object result = null;
		System.out.println("1");
		result=myInvocation.proceed();
		System.out.println("4");
		return result;
	}
}
class Two implements MyInterceptor{

	@Override
	public Object invoke(MyInvocation myInvocation) {

		Object result = null;
		System.out.println("2");
		result=myInvocation.proceed();
		System.out.println("3");
		return result;
	}
}